// ml:run = $bin < input
#include <iostream>

using ll = long long;
ll l, r, w;

ll gcd(ll a, ll b) { return !b ? a : gcd(b, a % b); }

int main()
{
    std::ios::sync_with_stdio(false);
    std::cin >> l >> r >> w;
    auto k = gcd(r, w);
    ll t = r / k;
    if (r % k == 0) t--;
    t = t * k;
    if (t + w > l)
        std::cout << "DEADLOCK\n";
    else
        std::cout << "OK\n";
}

